package com.sw.youvote.client.services;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sw.youvote.shared.objects.CandidatureBean;
import com.sw.youvote.shared.objects.QuizBean;

public interface QuizServiceAsync  {
    public void listQuizs(AsyncCallback<List <QuizBean>> callback);
    public void addQuiz(QuizBean quiz, AsyncCallback<Void> callback);
    public void removeQuiz(QuizBean quiz, AsyncCallback<Void> callback);
    public void updateQuiz(QuizBean quiz, AsyncCallback<Void> callback);
    
    public void addCandidature(QuizBean quiz, CandidatureBean candidature, AsyncCallback<Void> callback);
    public void removeCandidature(QuizBean quiz, CandidatureBean candidature, AsyncCallback<Void> callback);
    public void updateCandidature(QuizBean quiz, CandidatureBean candidature, AsyncCallback<Void> callback);
    public void listCandidatures(QuizBean quiz, AsyncCallback<List <CandidatureBean>> callback);
}
